<?php
    $product_view = $this->getConfig('porto_settings/category');
    $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block');
    if($block) {
        $block->setBlockId($product_view['side_custom_block']);
    }
    if($block){
        echo $block->toHtml();
    }
?>